import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-default/index.css'
import App from './index.vue'
import vueRouter from 'vue-router'
import axios from 'axios'

Vue.use(vueRouter);
Vue.use(ElementUI);

const router = new vueRouter({
	mode:'history',
	routes:[
		{
			path:'/',
			component:(re)=>require(['./Page.vue'],re),
		},
		{
			path:'/homepage',
			component:(re)=>require(['./Home.vue'],re),
		},
		{
			path:'/app',
			component:(re)=>require(['./App.vue'],re),
		},
		{
			path:'/business',         
			component:(re)=>require(['./Business.vue'],re),
		},
		{
			path:'/dep',
			component:(re)=>require(['./Depart.vue'],re),
		},
		{
			path:'/game',
			component:(re)=>require(['./Game.vue'],re),
		},
		{
			path:'/login',
			component:(re)=>require(['./Login.vue'],re),
		},
		{
			path:'/project',
			component:(re)=>require(['./Project.vue'],re),
		},
		{
			path:'/ktable',
			component:(re)=>require(['./Ktable.vue'],re),
		}
	]
});

new Vue({
  el: '#app',
  router:router,
  render: h => h(App)
})
